<template>
  <div class="page">
    <YpTopoNew :data="topologyData" />
  </div>
</template>
<script setup>
import YpTopoNew from '../yp/components/YpTopoNew.vue'

const topologyData = {
  attack_code: '',
  topologyid: {
    1: {
      comm: 'systemd',
      exe: '',
      pid: 1,
      argv: '',
      username: '',
      timestamp: '',
      nodetype: '进程',
    },
    1314: {
      comm: 'kdumpctl',
      exe: '',
      pid: 1314,
      argv: '',
      username: '',
      timestamp: '',
      nodetype: '进程',
    },
    1324: {
      comm: 'kdumpctl',
      exe: '',
      pid: 1324,
      argv: '',
      username: '',
      timestamp: '',
      nodetype: '进程',
    },
    1495: {
      comm: 'mkdumprd',
      exe: '',
      pid: 1495,
      argv: '',
      username: '',
      timestamp: '',
      nodetype: '进程',
    },
    1706: {
      comm: 'dracut',
      exe: '',
      pid: 1706,
      argv: '',
      username: '',
      timestamp: '',
      nodetype: '进程',
    },
    7718: {
      comm: 'dracut-install',
      exe: '/usr/lib/dracut/dracut-install',
      pid: 7718,
      argv: '',
      username: 'root',
      timestamp: '2025-06-23 09:34:40',
      nodetype: '进程',
    },
    7759: {
      comm: 'cp',
      exe: '/usr/bin/cp',
      pid: 7759,
      argv: 'cp --reflink=auto --sparse=auto --preserve=mode,timestamps -fL /usr/lib/systemd/system/systemd-ask-password-console.path /var/tmp/dracut.HC1V7n/initramfs/usr/lib/systemd/system/systemd-ask-password-console.path',
      username: 'root',
      timestamp: '2025-06-23 09:34:40',
      nodetype: '进程',
    },
    800001: {
      exe: '/usr/lib/dracut/dracut-install',
      comm: 'dracut-install',
      pid: 0,
      argv: '/usr/lib/dracut/dracut-install -D /var/tmp/dracut.HC1V7n/initramfs /usr/lib/udev/rules.d/73-seat-late.rules',
      username: 'root',
      data_type: 'proc_exit',
      nodetype: '',
    },
    800002: {
      exe: '/usr/bin/cp',
      comm: 'cp',
      pid: 0,
      argv: 'cp --reflink=auto --sparse=auto -prfL -t /var/tmp/dracut.HC1V7n/initramfs//usr/share/terminfo/v /usr/share/terminfo/v/vt100',
      username: 'root',
      data_type: 'file_write',
      file_path: '/var/tmp/dracut.HC1V7n/initramfs/usr/share/terminfo/v/vt100',
      nodetype: '',
    },
    800003: {
      exe: '/usr/bin/cp',
      comm: 'cp',
      pid: 0,
      argv: 'cp --reflink=auto --sparse=auto --preserve=mode,timestamps -fL /usr/bin/udevadm /var/tmp/dracut.HC1V7n/initramfs/usr/bin/udevadm',
      username: 'root',
      data_type: 'proc_exit',
      nodetype: '',
    },
    800004: {
      exe: '/usr/bin/grep',
      comm: 'grep',
      pid: 0,
      argv: 'grep -E -q ^cdrom: /var/tmp/dracut.HC1V7n/initramfs/etc/group',
      username: 'root',
      data_type: 'proc_exit_group',
      nodetype: '',
    },
    800005: {
      exe: '/usr/bin/grep',
      comm: 'grep',
      pid: 0,
      argv: 'grep -qE OWNER=?"[^ "]+ /usr/lib/dracut/modules.d/95udev-rules/61-persistent-storage.rules',
      username: 'root',
      data_type: 'proc_exec',
      dip: '00:00:00:00:00:00:00:00',
      sip: '00:00:00:00:00:00:00:00',
      nodetype: '',
    },
    800006: {
      exe: '/usr/bin/cp',
      comm: 'cp',
      pid: 0,
      argv: 'cp --reflink=auto --sparse=auto --preserve=mode,timestamps -fL /usr/bin/loginctl /var/tmp/dracut.HC1V7n/initramfs/usr/bin/loginctl',
      username: 'root',
      data_type: 'proc_exit_group',
      nodetype: '',
    },
    800007: {
      exe: '/usr/bin/grep',
      comm: 'egrep',
      pid: 0,
      argv: 'grep -E ^lp: /etc/group',
      username: 'root',
      data_type: 'proc_exit',
      nodetype: '',
    },
    800008: {
      exe: '/usr/bin/sed',
      comm: 'sed',
      pid: 0,
      argv: 'sed -r s/.*GROUP=?"([^ "]+).*/\\1/',
      username: 'root',
      data_type: 'proc_exit_group',
      nodetype: '',
    },
    800009: {
      exe: '/usr/bin/grep',
      comm: 'grep',
      pid: 0,
      argv: 'grep -q -F initqueue /usr/lib/udev/rules.d/60-persistent-storage.rules',
      username: 'root',
      data_type: 'proc_exec',
      dip: '00:00:00:00:00:00:00:00',
      sip: '00:00:00:00:00:00:00:00',
      nodetype: '',
    },
    800010: {
      exe: '/usr/lib/dracut/dracut-install',
      comm: 'dracut-install',
      pid: 0,
      argv: '/usr/lib/dracut/dracut-install -D /var/tmp/dracut.HC1V7n/initramfs /usr/lib/dracut/modules.d/95fstab-sys/mount-sys.sh /lib/dracut/hooks/pre-pivot/00-mount-sys.sh',
      username: 'root',
      data_type: 'proc_exit',
      nodetype: '',
    },
  },
  related: [
    {
      start: 7718,
      end: 7759,
      attribute: '父子关系',
    },
    {
      start: 1706,
      end: 7718,
      attribute: '父子关系',
    },
    {
      start: 1495,
      end: 1706,
      attribute: '父子关系',
    },
    {
      start: 1324,
      end: 1495,
      attribute: '父子关系',
    },
    {
      start: 1314,
      end: 1324,
      attribute: '父子关系',
    },
    {
      start: 1,
      end: 1314,
      attribute: '父子关系',
    },
    {
      start: 0,
      end: 800001,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800002,
      attribute: '操作文件',
    },
    {
      start: 0,
      end: 800003,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800004,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800005,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800006,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800007,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800008,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800009,
      attribute: '进程执行',
    },
    {
      start: 0,
      end: 800010,
      attribute: '进程执行',
    },
  ],
}
</script>
<style lang="scss" scoped>
.page {
  width: 100%;
  height: 100vh;
}
</style>
